package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.text.DecimalFormat;
import java.util.ArrayList;

import android.R.integer;
import android.R.string;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class OrderBean implements Serializable, IJsonParser{

	/**
	 * "order_list": [
    {
      "create_time": "2015-07-25 19:54:48",
      "order_product_list": [
        {
          "product_count": 2,
          "product_image": "http://imgs.ykdllmyr.com/fxs/2015/7/20/d5yrKawDq7zX9MH89Sb2kN.jpeg",
          "product_price": 139.2,
          "product_id": 102,
          "product_name": "美素佳儿营养品"
        },
        {
          "product_count": 3,
          "product_image": "http://imgs.ykdllmyr.com/fxs/2015/7/20/C5FZsQLqfMtupfwna8PPJb.jpeg",
          "product_price": 150.39,
          "product_id": 103,
          "product_name": "雅培(Abbott) 亲体 金装喜康力幼儿配方奶粉"
        }
      ],
      "order_fore_status": 1,
      "order_id": 8582,
      "order_status": 12111,
      "order_status_desc": "备货中",
      "order_price": 729.57
    },
	 */
	private static final long serialVersionUID = 86413513419565901L;
	private String create_time;
	private ArrayList<Order_ProductBean>  order_product_list;
	private int order_fore_status;
	private int order_id ;
	private int order_status ;
	private String order_status_desc;
	private String order_price;
	public String getCreated_time() {
		return create_time;
	}
	public ArrayList<Order_ProductBean> getOrder_product_list() {
		return order_product_list;
	}
	public int getOrder_fore_status() {
		return order_fore_status;
	}
	public int getOrder_id() {
		return order_id;
	}
	public int getOrder_status() {
		return order_status;
	}
	public String getOrder_status_desc() {
		return order_status_desc;
	}
	public String getOrder_price() {
		return order_price;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, OrderBean.class);
		}
		return null;
	}

}
